.class public final LVitxI/jtHon/xDjdg/kOzGz;
.super Ljava/lang/Object;

# interfaces
.implements LVitxI/uCfsH;


# instance fields
.field private final cOddK:Z


# direct methods
.method public constructor <init>(Z)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-boolean p1, p0, LVitxI/jtHon/xDjdg/kOzGz;->cOddK:Z

    return-void
.end method


# virtual methods
.method public JYYDJ(LVitxI/XEZdo;)LVitxI/AXLbC;
    .locals 8

    move-object v0, p1

    check-cast v0, LVitxI/jtHon/xDjdg/XFXGg;

    invoke-virtual {v0}, LVitxI/jtHon/xDjdg/XFXGg;->UpUqm()LVitxI/jtHon/xDjdg/oRFKi;

    move-result-object v1

    move-object v0, p1

    check-cast v0, LVitxI/jtHon/xDjdg/XFXGg;

    invoke-virtual {v0}, LVitxI/jtHon/xDjdg/XFXGg;->XLbVf()LVitxI/jtHon/KQisc/gQAvS;

    move-result-object v2

    invoke-interface {p1}, LVitxI/XEZdo;->nhQZr()LVitxI/norZp;

    move-result-object v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-interface {v1, v0}, LVitxI/jtHon/xDjdg/oRFKi;->grwvE(LVitxI/norZp;)V

    invoke-virtual {v0}, LVitxI/norZp;->nyVRB()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, LVitxI/jtHon/xDjdg/oVYVz;->MoRkV(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    invoke-virtual {v0}, LVitxI/norZp;->XdNod()LVitxI/Fdsbo;

    move-result-object v3

    if-eqz v3, :cond_0

    invoke-virtual {v0}, LVitxI/norZp;->XdNod()LVitxI/Fdsbo;

    move-result-object v3

    invoke-virtual {v3}, LVitxI/Fdsbo;->uWzJn()J

    move-result-wide v6

    invoke-interface {v1, v0, v6, v7}, LVitxI/jtHon/xDjdg/oRFKi;->KZGnP(LVitxI/norZp;J)LAEisT/jqaCk;

    move-result-object v3

    invoke-static {v3}, LAEisT/PZcQo;->qhhul(LAEisT/jqaCk;)LAEisT/Xcscn;

    move-result-object v3

    invoke-virtual {v0}, LVitxI/norZp;->XdNod()LVitxI/Fdsbo;

    move-result-object v6

    invoke-virtual {v6, v3}, LVitxI/Fdsbo;->sduSu(LAEisT/Xcscn;)V

    invoke-interface {v3}, LAEisT/Xcscn;->close()V

    :cond_0
    invoke-interface {v1}, LVitxI/jtHon/xDjdg/oRFKi;->SzZoe()V

    invoke-interface {v1}, LVitxI/jtHon/xDjdg/oRFKi;->gnSiH()LVitxI/MUlNx;

    move-result-object v3

    invoke-virtual {v3, v0}, LVitxI/MUlNx;->HOoUV(LVitxI/norZp;)LVitxI/MUlNx;

    move-result-object v0

    invoke-virtual {v2}, LVitxI/jtHon/KQisc/gQAvS;->fjlgU()LVitxI/jtHon/KQisc/oJgJZ;

    move-result-object v3

    invoke-virtual {v3}, LVitxI/jtHon/KQisc/oJgJZ;->mVdLC()LVitxI/caWCI;

    move-result-object v3

    invoke-virtual {v0, v3}, LVitxI/MUlNx;->WjYiN(LVitxI/caWCI;)LVitxI/MUlNx;

    move-result-object v0

    invoke-virtual {v0, v4, v5}, LVitxI/MUlNx;->lvVPT(J)LVitxI/MUlNx;

    move-result-object v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-virtual {v0, v4, v5}, LVitxI/MUlNx;->CCeoY(J)LVitxI/MUlNx;

    move-result-object v0

    invoke-virtual {v0}, LVitxI/MUlNx;->HBris()LVitxI/AXLbC;

    move-result-object v0

    iget-boolean v3, p0, LVitxI/jtHon/xDjdg/kOzGz;->cOddK:Z

    if-eqz v3, :cond_1

    invoke-virtual {v0}, LVitxI/AXLbC;->PDMhr()I

    move-result v3

    const/16 v4, 0x65

    if-eq v3, v4, :cond_2

    :cond_1
    invoke-virtual {v0}, LVitxI/AXLbC;->XQLPT()LVitxI/MUlNx;

    move-result-object v3

    invoke-interface {v1, v0}, LVitxI/jtHon/xDjdg/oRFKi;->rQuYQ(LVitxI/AXLbC;)LVitxI/RvsWM;

    move-result-object v0

    invoke-virtual {v3, v0}, LVitxI/MUlNx;->GXCqB(LVitxI/RvsWM;)LVitxI/MUlNx;

    move-result-object v0

    invoke-virtual {v0}, LVitxI/MUlNx;->HBris()LVitxI/AXLbC;

    move-result-object v0

    :cond_2
    const-string v1, "close"

    invoke-virtual {v0}, LVitxI/AXLbC;->EyehD()LVitxI/norZp;

    move-result-object v3

    const-string v4, "Connection"

    invoke-virtual {v3, v4}, LVitxI/norZp;->qiOQj(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_3

    const-string v1, "close"

    const-string v3, "Connection"

    invoke-virtual {v0, v3}, LVitxI/AXLbC;->FurDX(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    :cond_3
    invoke-virtual {v2}, LVitxI/jtHon/KQisc/gQAvS;->VGWCn()V

    :cond_4
    invoke-virtual {v0}, LVitxI/AXLbC;->PDMhr()I

    move-result v1

    const/16 v2, 0xcc

    if-eq v1, v2, :cond_5

    const/16 v2, 0xcd

    if-ne v1, v2, :cond_6

    :cond_5
    invoke-virtual {v0}, LVitxI/AXLbC;->nfnsD()LVitxI/RvsWM;

    move-result-object v2

    invoke-virtual {v2}, LVitxI/RvsWM;->LxgVx()J

    move-result-wide v2

    const-wide/16 v4, 0x0

    cmp-long v2, v2, v4

    if-lez v2, :cond_6

    new-instance v2, Ljava/net/ProtocolException;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "HTTP "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v3, " had non-zero Content-Length: "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, LVitxI/AXLbC;->nfnsD()LVitxI/RvsWM;

    move-result-object v0

    invoke-virtual {v0}, LVitxI/RvsWM;->LxgVx()J

    move-result-wide v4

    invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v2, v0}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V

    throw v2

    :cond_6
    return-object v0
.end method
